#!/bin/sh

folder=$(pwd)
for file_a in ${folder}/log/*
do
    temp_file=`basename $file_a`
    echo ==============================================start==${temp_file}
    cat log/${temp_file} | grep -i "error"
    cat log/${temp_file} | grep -i "exception"
    cat log/${temp_file} | grep -i "warn"
    echo ==============================================end====${temp_file}
    echo ''
    echo ''
done
